import { RouteRecordRaw } from "vue-router";
import ClassView from "@/views/ClassView.vue";
import ForumView from "@/views/ForumView.vue";
import NoteView from "@/views/NoteView.vue";
import ClouddiskView from "@/views/ClouddiskView.vue";
import NoticeView from "@/views/NoticeView.vue";
import ChatView from "@/views/ChatView.vue";
import ClassLayout from "@/layout/ClassLayout.vue";
import ClassContentView from "@/views/ClassContentView.vue";
import BasicLayout from "@/layout/BasicLayout.vue";
export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "课程",
    component: ClassView,
    meta: {
      layout: BasicLayout,
      hideInMenu: false,
    },
  },
  {
    path: "/about",
    name: "收件箱",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: NoticeView,
  },
  {
    path: "/forumview",
    name: "论坛",
    component: ForumView,
  },
  {
    path: "/noteview",
    name: "笔记",
    component: NoteView,
  },
  {
    path: "/chat",
    name: "聊天室",
    component: ChatView,
  },
  {
    path: "/clouddiskview",
    name: "云盘",
    component: ClouddiskView,
  },
  {
    path: "/class",
    name: "课程页面",
    component: ClassLayout,
    meta: {
      hideInMenu: true,
    },
    children: [
      {
        path: "/class/content",
        name: "课程详情页面",
        component: ClassContentView,
      },
      {
        path: "/class/content",
        name: "课程详情页面",
        component: ClassContentView,
      },
    ],
  },
];
